#include "state.h"
#include "SEGGER_RTT.h"
volatile enum State state = STATE_STOP;
osMutexId_t state_mutex;
void state_init(void){
    state_mutex = osMutexNew(NULL);
    if(state_mutex==NULL) SEGGER_RTT_WriteString(0,"state_mutexError\r\n");
}